<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:a4j="http://richfaces.org/a4j">

	<ui:composition>

		<t:div styleClass="result">
			<h2>
				<a4j:commandLink value="#{bean.name}"/>
			</h2>
			<h:outputText value="Description:" styleClass="bld"/>
			<t:div styleClass="idnt">
				<h:outputText value="#{bean.annotation}"/>
			</t:div>
			<br/>

			<h:graphicImage value="/images/#{bean.imageUrl}" alt=""/>

			<t:div rendered="#{bean.superClasses !=null}">
				<h:outputText value="Super Classes:" styleClass="bld"/><br/>
				<ul>
					<a4j:repeat value ="#{bean.superClasses}" var="data">
						<li>
							<a4j:commandLink value="#{data.name}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.URIAsString}"/>
							</a4j:commandLink>
						</li>
					</a4j:repeat>
				</ul>
			</t:div>

			<t:div rendered="#{bean.classTypes !=null}">
				<h:outputText value="Member:" styleClass="bld"/>
				<ul>
					<a4j:repeat value="#{bean.classTypes}" var="data">
						<li>
						<a4j:commandLink value="#{data.name}" action="#{browserMBean.showItemViewAction}" reRender="center">
							<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.URIAsString}"/>
						</a4j:commandLink>
						</li>
					</a4j:repeat>
				</ul>
			</t:div>

			<t:div rendered="#{bean.objectProp !=null}">
				<h:outputText value="Relations:" styleClass="bld"/><br/>
				<ul>
					<a4j:repeat value ="#{bean.objectProp}" var="data">
						<li>
							<a4j:commandLink value="#{data.property}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.propertyURIAsString}"/>
							</a4j:commandLink>
							<h:outputText value=" #{data.restriction} "/>
							<h:outputText value=" #{data.cardinality} "/>
							<a4j:commandLink value="#{data.filler}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.fillerURIAsString}"/>
							</a4j:commandLink>
						</li>
					</a4j:repeat>
				</ul>
			</t:div>

			<t:div rendered="#{bean.dataProp !=null}">
				<h:outputText value="Relations:" styleClass="bld"/><br/>
				<ul>
					<a4j:repeat value ="#{bean.dataProp}" var="data">
						<li>
							<a4j:commandLink value="#{data.property}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.propertyURIAsString}"/>
							</a4j:commandLink>
							<h:outputText value=" #{data.restriction} "/>
							<h:outputText value=" #{data.cardinality} "/>
							<!--
							<a4j:commandLink value="#{data.filler}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="selectedItemURI" assignTo="#{browserMBean.selectedItemURI}" value="#{data.fillerURIAsString}"/>
							</a4j:commandLink>
							-->
						</li>
					</a4j:repeat>
				</ul>
			</t:div>


			<t:div rendered="#{bean.individuals !=null}">
				<h:outputText value="Individuals" styleClass="bld"/><br/>
				<ul>
					<a4j:repeat value ="#{bean.individuals}" var="data">
						<li><a4j:commandLink value="#{data.name}" action="#{browserMBean.showItemViewAction}" reRender="center">
								<a4j:actionparam name="currentItemID" assignTo="#{browserMBean.selectedItemURI}" value="#{data.URIAsString}"/>
							</a4j:commandLink>
						</li>
					</a4j:repeat>
				</ul>
			</t:div>
		</t:div>

	</ui:composition>

</html>
